package com.community.service;

import com.community.pojo.Cart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
public interface ICartService extends IService<Cart> {
    void addCart(Cart cart);
    List<Cart> getCartsByConsumerId(Long userId);
    void updateCart(Cart cart);
    void deleteCart(Long id);

    List<Cart> selectCartProduct();
}
